package com.yiwei.ydd.api.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by xsooy-pc on 18-8-14.
 */

public class OilcardAgencyCreateBean implements Parcelable {

    /**
     * mobile : 18459159862
     * username : 王文城
     * province_id : 1
     * oil_id : 1
     * pay_way : 5
     * city_id : 2
     * area_id : 3
     * area_detail : 4
     * idcard_path : 1
     * idcard_back_path : 3
     */

    public String mobile;
    public String username;
    public String province_id;
    public String oil_id="1";
    public String pay_way;
    public String city_id;
    public String area_id;
    public String area_detail;
    public String idcard_path;
    public String idcard_back_path;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.mobile);
        dest.writeString(this.username);
        dest.writeString(this.province_id);
        dest.writeString(this.oil_id);
        dest.writeString(this.pay_way);
        dest.writeString(this.city_id);
        dest.writeString(this.area_id);
        dest.writeString(this.area_detail);
        dest.writeString(this.idcard_path);
        dest.writeString(this.idcard_back_path);
    }

    public OilcardAgencyCreateBean() {
    }

    protected OilcardAgencyCreateBean(Parcel in) {
        this.mobile = in.readString();
        this.username = in.readString();
        this.province_id = in.readString();
        this.oil_id = in.readString();
        this.pay_way = in.readString();
        this.city_id = in.readString();
        this.area_id = in.readString();
        this.area_detail = in.readString();
        this.idcard_path = in.readString();
        this.idcard_back_path = in.readString();
    }

    public static final Parcelable.Creator<OilcardAgencyCreateBean> CREATOR = new Parcelable.Creator<OilcardAgencyCreateBean>() {
        @Override
        public OilcardAgencyCreateBean createFromParcel(Parcel source) {
            return new OilcardAgencyCreateBean(source);
        }

        @Override
        public OilcardAgencyCreateBean[] newArray(int size) {
            return new OilcardAgencyCreateBean[size];
        }
    };
}
